﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Reports.CommanData
{
   public class Departs
    {
      private static Reports.CommanData.Common.DepartsDataTable _list;
       public static Reports.CommanData.Common.DepartsDataTable List(string conStr)
       {
           if (_list != null)
               return _list;
           Reports.CommanData.CommonTableAdapters.DepartsTableAdapter adapter = new Reports.CommanData.CommonTableAdapters.DepartsTableAdapter();
           adapter.Connection.ConnectionString = conStr;
           _list = adapter.GetData();
           return _list;
       }
    }
}
